package com.etc.entity;

/**
 * 博客实体类
 * 
 * @author 施明
 *
 */
public class Blog {
	private Integer bid;
	private Integer uid;

	private String btitle;
	private String bcontent;
	private Integer boraise;
	private Integer bstate;

	private User user;
	private String bimg;

	public String getBimg() {
		return bimg;
	}

	public void setBimg(String bimg) {
		this.bimg = bimg;
	}

	public Integer getUid() {
		return uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public Integer getBid() {
		return bid;
	}

	public void setBid(Integer bid) {
		this.bid = bid;
	}

	public String getBtitle() {
		return btitle;
	}

	public void setBtitle(String btitle) {
		this.btitle = btitle;
	}

	public String getBcontent() {
		return bcontent;
	}

	public void setBcontent(String bcontent) {
		this.bcontent = bcontent;
	}

	public Integer getBoraise() {
		return boraise;
	}

	public void setBoraise(Integer boraise) {
		this.boraise = boraise;
	}

	public Integer getBstate() {
		return bstate;
	}

	public void setBstate(Integer bstate) {
		this.bstate = bstate;
	}

	@Override
	public String toString() {
		return "Blog [bid=" + bid + ", uid=" + uid + ", btitle=" + btitle + ", bcontent=" + bcontent + ", boraise="
				+ boraise + ", bstate=" + bstate + ", user=" + user + ", bimg=" + bimg + "]";
	}

	public Blog(Integer bid, Integer uid, String btitle, String bcontent, Integer boraise, Integer bstate,
			String bimg) {
		super();
		this.bid = bid;
		this.uid = uid;
		this.btitle = btitle;
		this.bcontent = bcontent;
		this.boraise = boraise;
		this.bstate = bstate;
		this.bimg = bimg;
	}
	public Blog(Integer bid, String btitle, String bimg) {
		super();
		this.bid = bid;
		
		this.btitle = btitle;
		
		this.bimg = bimg;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Blog() {
		// TODO Auto-generated constructor stub
	}

}
